package Offer来了.基础.包装类缓存;

public class Test {
    public static void main(String[] args) {
        Integer i = new Integer(1);
        Integer j = new Integer(1);
        System.out.println(i == j);   //false

        Integer m = 1;
        Integer n = 1;
        System.out.println(m == n);   //true
        Integer x = 128;
        Integer y = 128;
        System.out.println(x == y);   //false
        int a = 127;
        Integer b = 127;
        System.out.println(a == b);   //true
        int c = 128;
        Integer d = 128;
        System.out.println(c == d);   //true
    }
}
